package com.czk.scala.chapter06

/**
 * @Author:ChenZhangKun
 * @Date: 2022/1/6 17:51
 */
object Test04_ClassForAccess {

}

// 定义一个父类
class Person {
  private var idCard: String = "1212"

  protected var name: String = "czk"

  var sex: String = "female"

  private[chapter06] var age: Int = 18

  def printInfo(): Unit = {
    println(s"Person($idCard, $name, $sex, $age)")
  }

}
